<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use Illuminate\Support\Facades\Route;

Route::get('/', function() {
    return view('welcome');
});

//Route::get('admin/index/index', 'Admin\IndexController@index');

// admin 模块

Route::group(['namespace' => 'Admin', 'prefix' => 'admin'], function() {
    // 首页展示
    Route::group(['prefix' => 'index'], function() {
        // 文章列表
        Route::get('index', 'IndexController@index');
    });
});

Route::get('about', 'Admin\PagesController@about');
